{{define "Title"}}Failure Statistics Detail{{end}}
{{define "Content"}}

<fieldset>
  <legend><b>Failure Statistics Detail</b></legend>
</fieldset>

<script type=text/javascript src="/js/splitPage.js"></script>
<script type=text/javascript src="/js/failstatissplit.js"></script>
<script type=text/javascript src="/js/failstatisperpage.js"></script>
<script type=text/javascript src="/js/tablestyle.js"></script>

{{if .dt_ls}}
<div class="content-box">
<span id=obj1 style="color: black">
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <thead>
    <tr>
      <th>Index</th>
      <th>Work Order</th>
      <th>Product No.</th>
      <th>Station</th>
      <th>Result</th>
      <th>Fail Code</th>
      <th>Fail Desc</th>
      <th>Datetime</th>
    </tr>
  </thead>  
  <tbody id="group_one">
  {{range .dt_ls}}
  <tr>
    <td id="detail_idx" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Index | html}}</td>
    <td id="detail_won" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/querywo?q={{.Wono | html}}">{{.Wono | html}}</a></td>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/queryssn?q={{.Serial | html}}">{{.Serial | html}}</a></td>
    <td id="detail_sta" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Station | html}}</td>
    <td id="detail_rst" fieldset style="background: #E00000; color: #EFF000; border-style: groove; font-weight: bold; font-size: 14px">{{.Result | html}}</td>
    <td id="detail_fcd" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Failcode | html}}</td>
    <td id="detail_dsc" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Faildesc | html}}</td>    
    <td id="detail_dat" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Date | html}}</td>
  </tr>
  {{end}}
  </tbody>
</table>
</span>
</div>
<input type=hidden id="fdes" value="{{.fdesc | html}}">
<input type=hidden id="bdate" value="{{.bdate  | html}}">
<input type=hidden id="edate" value="{{.edate  | html}}">
<input type=button id="detailquery" value="ff" style="display:none">
<span id="spanFirst"><img id='first' src="/images/FirstPageImageUrl.gif" onclick="onFirstClick();"/></span> <span id="spanPre"><img id='prev' src="/images/PreviousPageImageUrl.gif" onclick="onPrevClick();"/></span> <span id="spanNext"><img id='next' src="/images/NextPageImageUrl.gif" onclick="onNextClick();"/></span> <span id="spanLast"><img id='last' src="/images/LastPageImageUrl.gif" onclick="onLastClick();"/></span> Page: <span id="spanPageNum">{{.curr_page}}</span> / Total: <span id="spanTotalPage">{{.total_page}}</span> <span><input id="specialnum" style="width: 60px; color: blue; font-size: 14px; font-weight: bold;" type="text" onkeydown="onSpecialKeydown();"></span><span id="GotoSpecial" style="font-size: 14px; font-weight: bold; cursor:hand; text-decoration:underline; color: #57a000;" onclick="onSpecialClick();">Goto!</span>

{{end}}

{{end}}